package plus.H5D3B5016.event;

/**
 * 事件
 */
public class MyEvent {

    /**
     * 类型
     */
    private EventType type;
    /**
     * 携带数据
     */
    private Object obj;

    private MyEvent(){}



    public MyEvent(EventType type){
        this.type=type;
    }

    public MyEvent(EventType type,Object obj){
        this.type=type;
        this.obj=obj;
    }


    public EventType getType() {
        return type;
    }

    public void setType(EventType type) {
        this.type = type;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
